import request from '@/utils/request'

// 查询输液室登记主列表 (分页)
export function selectPageInfusionRegister(query) {
  return request({
    url: '/business/infusionRegister/selectPage',
    method: 'get',
    params: query
  })
}

// 查询输液室登记主列表 (不分页)
export function listInfusionRegister(query) {
  return request({
    url: '/business/infusionRegister/list',
    method: 'get',
    params: query
  })
}


// 查询已登记的输液患者列表
export function listInfusionRegisterInfoList(query) {
  return request({
    url: '/business/infusionRegister/listInfusionRegisterInfoList',
    method: 'get',
    params: query
  })
}


// 查询输液室登记主列表+ 药品详情 (不分页)
export function listInfusionRegisterAndPrescItem(query) {
  return request({
    url: '/business/infusionRegister/listInfusionRegisterAndPrescItem',
    method: 'get',
    params: query
  })
}

// 查询输液室登记主详细
export function getInfusionRegister(infusionRegisterId) {
  return request({
    url: '/business/infusionRegister/' + infusionRegisterId,
    method: 'get'
  })
}

// 新增输液室登记主
export function addInfusionRegister(data) {
  return request({
    url: '/business/infusionRegister',
    method: 'post',
    data: data
  })
}

// 修改输液室登记主
export function updateInfusionRegister(data) {
  return request({
    url: '/business/infusionRegister',
    method: 'put',
    data: data
  })
}

// 删除输液室登记主
export function delInfusionRegister(infusionRegisterId) {
  return request({
    url: '/business/infusionRegister/' + infusionRegisterId,
    method: 'delete'
  })
}
